package cn.juque.systemservice.api.dto.employee;

import cn.juque.common.abstracts.AbstractRequestDTO;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Size;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>员工信息</li>
 * </ul>
 * @date 2022-11-03 11:58:48
 **/
@Data
public class EmployeeInfoSearchDTO extends AbstractRequestDTO {

    /**
     * 用户全局唯一性ID
     */
    @Size(message = "用户ID不能超过{max}个字符", max = 32)
    private String userId;

    /**
     * 员工姓名
     */
    @Size(message = "员工姓名不能超过{max}个字符", max = 16)
    private String employeeName;

    /**
     * 员工手机号，可用于登录
     */
    @Size(message = "员工手机号不能超过{max}个字符", max = 11)
    private String employeeTel;

    /**
     * 员工状态：1-待激活；2-已激活；3-禁用,
     */
    @Range(min = 0, max = 99, message = "员工状态必须在{min}-{max}之间")
    private Integer employeeStatus;

    /**
     * 邮箱号，可用于登录
     */
    @Size(message = "邮箱号不能超过{max}个字符", max = 32)
    private String email;

}
